<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>国家管理</title>
  <link href="/assets/css/admin/reset.css" rel="stylesheet" type="text/css">
  <link href="/assets/css/admin/zh-cn-system.css" rel="stylesheet" type="text/css">
  <link href="/assets/css/admin/table_form.css" rel="stylesheet" type="text/css">
  <link rel="stylesheet" type="text/css" href="/assets/css/admin/style/zh-cn-styles1.css" title="styles1" media="screen">
  <link rel="alternate stylesheet" type="text/css" href="/assets/css/admin/style/zh-cn-styles2.css" title="styles2" media="screen">
  <link rel="alternate stylesheet" type="text/css" href="/assets/css/admin/style/zh-cn-styles3.css" title="styles3" media="screen">
  <link rel="alternate stylesheet" type="text/css" href="/assets/css/admin/style/zh-cn-styles4.css" title="styles4" media="screen">
  <script type="text/javascript" src="/assets/js/admin/jquery.min.js"></script>
  <script type="text/javascript" src="/assets/js/admin/jquery.cookie.js"></script>
  <script type="text/javascript" src="/assets/js/admin/styleswitch.js"></script>
  <script type="text/javascript" src="/assets/js/admin/admin_common.js"></script>
</head>
<body>
  <div class="subnav">
    <div class="content-menu ib-a blue line-x">
      <a class="add fb" href="/Admin/State/add/pid/0"><em>添加地区</em></a>&nbsp;&nbsp;&nbsp;<a class="on" href="/Admin/State/index"><em>国家管理</em></a>
    </div>
  </div>
  <style type="text/css">
  html{_overflow-y:scroll}
  </style>
  <div class="pad-lr-10 table-list">
    <form name="myform" id="myform" action="" method="post">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="10%">序号</th>
            <th width="10%" align="left">国家中文名（cn）</th>
            <th width="10%" align="left">国家英文名（en）</th>
            <th width="15%">管理操作</th>
          </tr>
        </thead>
        <tbody>
            <?php if(is_array($state)): foreach($state as $key=>$value): ?><tr>
              <td width="10%" align="center"><?php echo ++$i;?></td>
              <td width="10%"><?php echo ($value['cname']); ?></td>
              <td width="10%" align="left"><?php echo ($value['ename']); ?> </td>
              <td width="15%" align="center">
                <a href="/Admin/State/add/pid/<?php echo ($value['id']); ?>">添加下一级</a>|
                <a href="/Admin/State/edit/nid/<?php echo ($value['id']); ?>">修改</a> |
                <a onclick="return ConfirmDel();" href="/Admin/State/del/nid/<?php echo ($value['id']); ?>">删除</a>
              </td>
            </tr><?php endforeach; endif; ?>

          </tbody>
        </table>
      </form>
    </div>
  </body>
  </html>